//
//  CertificateMailModel.h
//  VideoExam
//
//  Created by apple on 2020/4/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CertificateMailModel : NSObject
@property(nonatomic,assign)NSInteger status; // 等于6时可编辑 填写地址状态
@property(nonatomic,strong)NSString * name;
@property(nonatomic,strong)NSString * phone;
@property(nonatomic,strong)NSString * city;
@property(nonatomic,strong)NSString * address;
@property(nonatomic,strong)NSString * orderId;
@property(nonatomic,strong)NSString * certificateUrl;//电子证书
@property(nonatomic,assign)CGFloat cellHeight;
@property(nonatomic,assign)BOOL showError;
@property(nonatomic,assign)NSInteger errorRow;

/// 获取配置好的model 数据
/// @param orderId orderId
/// @param successBlock 配置好的model 数据
//+ (void)get_configuration_model_orderId:(NSString *)orderId SuccessBlock:(void(^)(CertificateMailModel * nmodel, BOOL editor))successBlock;

#pragma mark 获取当前用户上次订单邮寄地址信息
/////获取邮寄地址信息
+ (void)get_order_address_info_orderId:(NSString *)orderId Success:(ObjSuccess)success error:(ErrorBlock)errorBlock;

/// 添加邮寄地址
/// @param success success
/// @param errorBlock errorBlock
-(void)add_addressSuccess:(ObjSuccess)success error:(ErrorBlock)errorBlock;

/// 根据订单号获取订单信息
///// @param orderId 订单号
///// @param success CertificateMailModel
///// @param errorBlock errorBlock
//+ (void)get_address_orderId:(NSString *)orderId Success:(ObjSuccess)success error:(ErrorBlock)errorBlock;

-(BOOL)data_validation;

//根据数据判断是否可编辑 有数据就不可编辑
- (BOOL)is_editor;

//判断数据是否可用
- (BOOL)is_available;
@end

NS_ASSUME_NONNULL_END
